package cn.lcsjsxy.yxc.objectoriented.多态性;

public class Woman extends Person {
    boolean isBeauty;

    public Woman(String name, int age, boolean isBeauty) {
        super(name, age);
        this.isBeauty = isBeauty;
    }

    public void goShopping() {
        System.out.println("女人喜欢购物");
    }

    public void eat(){
        System.out.println("女人少吃，为了减肥");
    }
    public void walk(){
        System.out.println("女人优雅的走路");
    }
}
